import Vue from 'vue'
import VueRouter from 'vue-router'
import Index1 from '../components/index/Index1.vue'
import Password from '../components/index/Password.vue'
import PermManager from '../components/perm/PermManager.vue'
import RoleManager from '../components/perm/RoleManager.vue'
//card导入
import Card from "@/components/card/Card";
import CardIn from "@/components/card/CardIn";
import CardInMachine from "@/components/card/CardInMachine";
import CardOut from "@/components/card/CardOut";
import CardOutMachine from "@/components/card/CardOutMachine";
import Vacation from "@/components/vacation/vacation";
import Attendance from "@/components/attendance/attendance";
import Appointment from "@/components/logistical/Appointment";
import Area from "@/components/logistical/Area";
import Dormitory from "@/components/logistical/Dormitory";
import RepaisrRecord from "@/components/logistical/RepaisrRecord";
import Visit from "../components/xjh/Visit";
import Callback from "../components/xjh/Callback";
import Header from "../components/xjh/Header";
import HiddenDeal from "../components/xjh/HiddenDeal";
import HiddenTrouble from "../components/xjh/HiddenTrouble";
import CourseManager from "../components/administration/CourseManager"
import ScoreEntry from "../components/administration/ScoreEntry"
import Structure from "../components/administration/Structure"
import Test from "../components/administration/Test"

Vue.use(VueRouter)

const routes = [
    // card路由配对
    {
        path: "/card/card",
        name: 'card',
        component: Card
    }, {
        path: "/card/cardIn",
        name: 'cardIn',
        component: CardIn
    }, {
        path: "/card/cardInMachine",
        name: 'cardInMachine',
        component: CardInMachine
    }, {
        path: "/card/cardOut",
        name: 'cardOut',
        component: CardOut
    }, {
        path: "/card/cardOutMachine",
        name: 'cardOutMachine',
        component: CardOutMachine
    },
    //card路由配对
    //xjh路由
    {
        path: '/xjh/visit',
        name: 'Visit',
        component: Visit
    },
    {
        path: '/xjh/callback',
        name: 'Callback',
        component: Callback
    },
    {
        path: '/xjh/header',
        name: 'Header',
        component: Header
    },
    {
        path: '/xjh/hiddenDeal',
        name: 'HiddenDeal',
        component: HiddenDeal
    },
    {
        path: '/xjh/hidden',
        name: 'HiddenTrouble',
        component: HiddenTrouble
    },
    //xjh路由结束
    {
        path: '/index/Index1',
        name: 'Index1',
        component: Index1
    },
    {
        path: '/index/Password',
        name: 'Password',
        component: Password
    },
    {
        path: '*',
        redirect: '/index/Index1'
    },
    {
        path: '/perm/list',
        name: 'PermManager',
        component: PermManager
    },
    {
        path: '/role/list',
        name: 'RoleManager',
        component: RoleManager
    },
    {
        path: '/vacation/list',
        name: 'Vacation',
        component: Vacation
    },
    {
        path: '/attendance/list',
        name: 'Attendance',
        component: Attendance
    },
    {
        path: '/appointment/list',
        name: 'Appointment',
        component: Appointment
    },
    {
        path: '/area/list',
        name: 'Area',
        component: Area
    },
    {
        path: '/dormitory/list',
        name: 'Dormitory',
        component: Dormitory
    },
    {
        path: '/repd/list',
        name: 'RepaisrRecord',
        component: RepaisrRecord
    },
    {
        path: '/administration/courseArrangement',
        name: 'CourseManager',
        component: CourseManager
    },
	{
        path: '/administration/result',
        name: 'ScoreEntry',
        component: ScoreEntry
    },
	{
        path: '/administration/test',
        name: 'Test',
        component: Test
    },
	{
        path: '/administration/structure',
        name: 'Structure',
        component: Structure
    }
    
]

const router = new VueRouter({
    routes
})

export default router
